package dal.object;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Point;

public class MapObject {
	protected Image img;
	protected Point location;
	
	public void drawObject(Graphics g){
		g.drawImage(img, location.x, location.y, null);
	}
	
	public void setLocation(Point location){
		this.location = new Point(location.x, location.y);
	}
	
	public Point getLocation(){
		return this.location;
	}
	
	public Dimension getSize(){
		return new Dimension(img.getWidth(null), img.getHeight(null));
	}
}
